
{[assign var="in_item" value="`$result`"]}

<fieldset><legend>收入信息</legend>
{[include file="finance/in/item/_view.tpl"]}
</fieldset>

<fieldset><legend>附加信息</legend>
<form id="form_edit"><input type="hidden" name="id" value="{[$smarty.request.id]}" />
<input type="hidden" name="total" id="total" value="{[$result.total]}" />
<table>
	<tr>
		<td align="right">银行信息：</td>
		<td colspan="3"><input type="text" name="transaction" id="transaction" value="{[$result.transaction]}" size="10">
		 <select name='transaction_t' id='transaction_t'>
			<option value="-">请选择</option>
			{[foreach name=outer key=key item=item from=$transaction_option]}
				<option value="{[$item.id]}">{[$item.id]} [{[$item.date]},{[$item.customer_t]},{[$item.amount]}]</option>
			{[/foreach]}
		</select></td>
	</tr>
	<tr>
		<td align="right">到帐日期：</td>
		<td><input type="text" name="date" id="date" value="{[$result.date|date_format:'%Y-%m-%d']}" size="12" disabled></td>
		<td align="right">开票日期：</td>
		<td><input type="text" name="date1" id="date1" value="{[$result.date1]}" size="12"></td>		
	</tr>
	<tr>
		<td width="20%" align="right">实收：</td>
		<td width="30%"><input type="text" name="amount" id="amount" value="{[$result.amount]}" size="12"></td>
		<td width="20%" align="right">汇率：</td>
		<td width="30%"><input type="text" name="rate" id="rate" value="{[$result.rate]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">类型：</td>
		<td><select name='type' id='type'>
			{[html_options options=$type_option selected=$result.type]}
		</select</td>
		<td align="right">人民币：</td>
		<td><input type="text" name="rmb" id="rmb" value="{[$result.rmb]}" size="12"></td>
	</tr>
	<tr>
		<td width="20%" align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>
</fieldset>

<script type='text/javascript'>
var exchange = {[$result.exchange]};
</script>

<script type="text/javascript" src="js/finance/in/item/finish.js?r={[$smarty.now]}"></script>
